package Inheritance;

public class Test {
    public static void main(String[] args) {
        LaoShi laoShi = new LaoShi("zhangsan",18,001);
        LaoShi laoShi2 = new LaoShi("zhangsan",18,001);
        System.out.println(laoShi);
        System.out.println(laoShi2);
        System.out.println(laoShi==laoShi2);
        System.out.println(laoShi.equals(laoShi2));

    }
}
